.container {
  padding: 1.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--background-secondary);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

.headerContent {
  flex: 1;
}

.title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--foreground-tertiary);
  font-size: 1rem;
}

.stats {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.statCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 120px;
}

.statValue {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.statValue.statOnline {
  color: var(--success);
}

.statValue.statOffline {
  color: var(--foreground-tertiary);
}

.statValue.statError {
  color: var(--error);
}

.statLabel {
  font-size: 0.875rem;
  color: var(--foreground-tertiary);
  font-weight: 500;
}

.controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.searchBox {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.searchInput {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  background: var(--card);
  color: var(--foreground);
}

.searchInput:focus {
  outline: none;
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.searchIcon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--foreground-tertiary);
}

.filterGroup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filterLabel {
  font-size: 0.875rem;
  color: var(--foreground-secondary);
  font-weight: 500;
}

.filterSelect {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  background: var(--card);
  color: var(--foreground);
  min-width: 100px;
}

.filterSelect:focus {
  outline: none;
  border-color: var(--info);
}

.tableContainer {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.deviceName {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.deviceNameText {
  font-weight: 500;
  color: var(--foreground);
}

.deviceType {
  font-size: 0.75rem;
  color: var(--foreground-tertiary);
  font-weight: 400;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .statCard {
    min-width: unset;
    padding: 0.75rem 1rem;
  }
  
  .statValue {
    font-size: 1.5rem;
  }
  
  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .searchBox {
    min-width: unset;
  }
  
  .filterGroup {
    justify-content: space-between;
  }
}
